home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12014 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: lrz-muenchen.de!news
  2. From: watzka@stat.uni-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: string search?
  5. Date: 28 Mar 1996 10:16:07 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4jdot7$eb0@sparcserver.lrz-muenchen.de>
  9. References: <4jc6ae$eol@voyager.eng.gulfaero.com>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. swofford@voyager.eng.gulfaero.com (Van Swofford) writes:
  13. >Ricardo Mor  <rmor1@ix.netcom.com> wrote:
  14. >>    How can I search for a string of characters within another string?
  15.  
  16. >The Microsoft C documentation indicates that strstr is ANSI compliant,
  17. >but not available under UNIX.
  18.  
  19. Well, if it is a function from the _standard_ C library, and if it is
  20. not available under UNIX, then obviously all UNIX implementations are
  21. non-ANSI implementations. This might be wrong, afaik :-)
  22.  
  23. Using functions from the standard C library is a good idea, even on
  24. UNIX systems. If the function is not available on your system, talk
  25. to your vendor. The GNU project is developing a C library, too, so
  26. if your organization cannot afford to _buy_ a "real" C implementation,
  27. this might be the next possible step to take.
  28.   
  29. Kurt
  30. --
  31. | Kurt Watzka                             Phone : +49-89-2180-6254
  32. | watzka@stat.uni-muenchen.de
  33. | ua302aa@sunmail.lrz-muenchen.de
  34.